package com.weactivity.utils;

/**
 * 该类用来将魔法值定义为显式的含义可知的常量
 * 同时区分业务
 *
 */


public class RedisConstant {
    //登录时发送的验证码的key前缀
    public static final String LOGIN_CODE_KEY = "login:code:";

    //登录时发送的验证码的失效时间---2分钟
    public static final Long LOGIN_CODE_TTL = 2L;

    //注册时发送的验证码的key前缀
    public static final String REGISTER_CODE_KEY = "register:code:";

    //注册时发送的验证码的失效时间---1分钟
    public static final Long REGISTER_CODE_TTL = 1L;

    public static final String RETRIEVE_CODE_KEY = "retrieve:code:";
    public static final Long RETRIEVE_CODE_TTL = 1L;
}
